package stud.cj.day15;

public class ArrayTest {
    public static void main(String[] args) {
        //1. 基本数据类型的比较
        int a = 10;
        int b = 10;
        //基本类型的变量保存就是数据本身
        System.out.println(a == b); //true

        //2. 对象类型的比较 - 数组
        int[] arr1 = new int[]{1,2,3};
        //System.out.println(arr1);//[I@330bedb4
        int[] arr2 = new int[]{1,2,3};
        System.out.println(arr1 == arr2);//false
    }
}
